#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018/1/24 9:28
# @Author  : yuxi
# @Site    : 
# @File    : login_page.py
# @Software: PyCharm

from data import base_xpath


class LoginPage(object):
    usernameinput = base_xpath.usernameInput
    passwordinput = base_xpath.passwordInput
    loginBUtton = base_xpath.loginButton

    def loginAction(self,driv,username,password):
        driv.element('XPATH', self.usernameinput).send_keys(username)
        driv.element('XPATH', self.passwordinput).send_keys(password)
        driv.element('XPATH', self.loginBUtton).click()

